<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../includes/importer.jsp"%>
<!doctype html>
<html>
<head>
<head>
<ht:head />

</head>
<body>
	<br />

	<div id="content">
		<!-- forms -->
		<div class="box">
			<!-- box / title -->
			<div class="title">
				<h5>商品信息查看</h5>
			</div>
			<div class="form">
            <div class="fields">
			<div class="field">
				<div class="label">
					<label for="name" class="req">商品名称：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.name }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="shortName" class="req">商品简称：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.shortName }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="warmPrompt" class="req">温馨提示：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.warmPrompt }</div>
			</div>

			<div class="field">
				<div class="label label-textarea">
					<label for="remark" class="req">商品介绍：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.remark }</div>
			</div>


			<div class="field" id="typeIdDiv">
				<div class="label">
					<label for="typeId" class="req">商品分类：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.typeName }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="weight" class="req">重量：</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.weight }</div>
			</div>


			<!-- 不发码显示是否需要物流 -->
			<div class="field">
				<div class="label">
					<label class="req">是否需要物流:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${postFlagMap[itemSale.postFlag]}</div>
			</div>

			<c:if test="${itemSale.postFlag==1 }">
				<div class="field" id="logisticsFeeDiv" style="display: none;">
					<div class="label">
						<label for="logisticsFee" class="req">物流运费:</label>
					</div>
					<div class="input" style="margin-left: 180px;">${itemSale.logisticsFee }</span>
					</div>
				</div>
			</c:if>


			<div class="field">
				<div class="label">
					<label for="saleStartTime" class="req">销售有效开始时间:</label>
				</div>
				<div class="input" style="margin-left: 180px;">
					<ct:time source="${itemSale.saleStartTime }"
						tfmt="yyyy-MM-dd hh:mm:ss" />
				</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="createTime" class="req">创建时间:</label>
				</div>
				<div class="input" style="margin-left: 180px;">
					<ct:time source="${itemSale.createTime }"
						tfmt="yyyy-MM-dd hh:mm:ss" />
				</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="updateTime" class="req">更新时间:</label>
				</div>
				<div class="input" style="margin-left: 180px;">
					<ct:time source="${itemSale.updateTime }"
						tfmt="yyyy-MM-dd hh:mm:ss" />
				</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="saleStopTime" class="req">销售有效结束时间:</label>
				</div>
				<div class="input" style="margin-left: 180px;">
					<ct:time source="${itemSale.saleStopTime }"
						tfmt="yyyy-MM-dd hh:mm:ss" />
				</div>
			</div>

			<div class="field" id="numLimit">
				<div class="label">
					<label for="userPerBuyNum" class="req">单个用户购买数量:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.userPerBuyNum }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="stockNum" class="req">商品库存:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.stockNum }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="marketPrice" class="req">市场价:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.marketPrice }</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="shopPrice" class="req">售价:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${itemSale.shopPrice }</div>
			</div>
			
			<div class="field">
				<div class="label">
					<label class="req">关联活动:</label>
				</div>
				<div class="input" style="margin-left: 180px;">
					<c:if test="${not empty activities }">
						<a href="${ctx }/activities/view/${activities[1] }" title="查看活动详情">${activities[0] }</a>
					</c:if>
					<c:if test="${empty activities }">
						无
					</c:if>
				</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="status">审核状态:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${auditStatusMap[itemSale.status]}&nbsp;</div>
			</div>

			<div class="field">
				<div class="label">
					<label for="saleStatus">上下架状态:</label>
				</div>
				<div class="input" style="margin-left: 180px;">${saleStatusMap[itemSale.saleStatus]}&nbsp;
				</div>
			</div>
			
			<div class="field">
				<div class="label">
					<label>商品封面LOGO：</label>
				</div>
				<div class="input" style="margin-left: 180px;">
                <c:if test="${itemSale.imgPath != null }" var="fg">
                	<img src="${coverImagePath }${itemSale.imgPath }" style="background: #ECE9D8" height="95" width="130">
                </c:if>
                <c:if test="${!fg}">
                	<img src="${ctx }/static/images/zwtp.png" id="logoImg" style="background: #ECE9D8" height="95" width="130">
                </c:if>
               </div>
           </div>
				
			<div class="field">
                  <div class="label">
                  	<label>商品详情LOGO：</label>
                  </div>
                  <c:forEach items="${imageInfos }" var="imageInfo">
					<div class="input" style="margin-left: 180px;">
						<img src="${infoImagePath }${imageInfo.image_path }" style="background: #ECE9D8" height="95" width="130">
						排序数值：${imageInfo.order_num }
					</div>
				</c:forEach>
            </div>
               
				<!-- div class="field" id="typeIdDiv">
					<div class="label">
						<label for="auditAdvice">审核意见：</label>
					</div>
					<div class="input">${cinemaInfo.auditAdvice }&nbsp;</div>
				</div> -->
						
					
					</div>
				</div>
			</div>
					<div class="buttons">
						<input type="button" class="common_btn" onclick="history.back();" value="返回" />
					</div>
				</div>
</div>
</div>
</body>
</html>